#define _CRT_SECURE_NO_WARNINGS 1

//https://leetcode.cn/problems/concatenation-of-array/description/

int* getConcatenation(int* nums, int numsSize, int* returnSize) {
    int* ans = (int*)malloc((numsSize * 2) * sizeof(int));
    for (int i = 0; i < numsSize; i++)
        ans[i] = ans[numsSize + i] = nums[i];
    *returnSize = numsSize * 2;
    return ans;
}